/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.com.minam.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pe.com.minam.beans.Departamento;
import pe.com.minam.daorepository.DepartamentoDao;

/**
 *
 * @author Willian
 */
@Service
public class DepaService{

    @Autowired
    private DepartamentoDao departamentoDao;

    public List<Departamento> getDepas(){
        return departamentoDao.findAll();
    }
}
